Add paper size combo and orientation combo to print dialog
authorMarek Kasik <mkasik@redhat.com>
Fri, 10 Jul 2009 09:28:31 +0000 (11:28 +0200)
committerMarek Kasik <mkasik@redhat.com>
Fri, 10 Jul 2009 09:28:31 +0000 (11:28 +0200)
commit0ef74c936f7a5b36a66ea828506b4b44e25a1998
treecd3492286b53633ee7f9dd8fa692287e1119c950
parent6ca5430a74c86b448e96b64166d67b3268e24789
Add paper size combo and orientation combo to print dialog

Paper size combo and orientation combo can be added by
gtk_print_operation_set_embed_page_setup_dialog() to GtkPrinUnixDialog
now. This function induce calling of
gtk_print_unix_dailog_set_embed_page_setup_dialog() after creation of
dialog. These two functions control embed-page-setup-dialog properties
in GtkPrintOperation and in GtkPrintUnixDialog.
There is also new function gtk_print_unix_dialog_get_page_setup_set()
which says whether page setup was set by user.
Selected page setup is stored as default page setup in
GtkPrintOperation.
New class is added, its name is GtkCustomPaperUnixDialog. The class
manages custom sizes. It is derived from GtkPageSetupUnixDialog's
CustomPaperDialog structure.
Page layout preview is modified, so, it shows dimensions of current
page setup (mm or inch - depends on locale). It also shows the name of
actual paper if page setup dialog is not embedded (paper size combo is
not visible).
gtk-demo is actualized to include this new feature.
13 files changed:
demos/gtk-demo/printing.c
docs/reference/gtk/gtk-sections.txt
gtk/Makefile.am
gtk/gtk.symbols
gtk/gtkcustompaperunixdialog.c [new file with mode: 0644]
gtk/gtkcustompaperunixdialog.h [new file with mode: 0644]
gtk/gtkpagesetupunixdialog.c
gtk/gtkprintoperation-private.h
gtk/gtkprintoperation-unix.c
gtk/gtkprintoperation.c
gtk/gtkprintoperation.h
gtk/gtkprintunixdialog.c
gtk/gtkprintunixdialog.h